using UnityEngine;

public class CustomisationButton : MonoBehaviour
{
	public UISprite lookPreview;

	public UILabel price;

	private CustomisationTabController customisationTabController;

	public GameObject enabledHighlight;

	public CustomisationConfig.Look myLook { get; protected set; }

	public void Init(CustomisationConfig.Look look, CustomisationTabController customisationTabController)
	{
		this.customisationTabController = customisationTabController;
		myLook = look;
		UITools.ChangeText(price, "Owned");
	}

	public void OnCustomiseClick()
	{
		customisationTabController.SelectLook(myLook);
	}

	public void UpdateButtonSelectionHighlight(bool isSelected)
	{
		enabledHighlight.SetActive(isSelected);
	}
}
